﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>仪器列表</title>
<#include "/admin/common_css.ftl">
<#include "/admin/common_js.ftl">
<script type="text/javascript" src="${base}/apache/common/js/jquery.pager.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	var $cancelreserve = $(".cancelreserve");

	// 删除文章分类
	$cancelreserve.click( function() {
		if (confirm("您确定要取消此预约吗?") == false) {
			return false;
		}
	});
  
});
</script>
</head>
<body class="list">
	<div class="bar">
		仪器列表&nbsp;总记录数: ${pager.totalCount} (共${pager.pageCount}页)
	</div>
	<div class="body">
		<form id="listForm" action="${base}/faith/reserve/reservelist" method="post">
			<table id="listTable" class="listTable">
				<tr>
					<th>
						<a href="#" class="sort" name="classifyName" hidefocus>仪器编号</a>
					</th>
					<th>
						<a href="#" class="sort" name="propertyName" hidefocus>仪器名称</a>
					</th>
					<th>
						<a href="#" class="sort" name="deviceFunc" hidefocus>分类代码</a>
					</th>
					<th>
						<a href="#" class="sort" name="deviceFunc" hidefocus>存放地点</a>
					</th>
					<th>
						<a href="#" class="sort" name="location" hidefocus>预约间</a>
					</th>
					<th>
						<a href="#" class="sort" name="location" hidefocus>预约开始时间</a>
					</th>
					<th>
						<a href="#" class="sort" name="specificationType" hidefocus>预约结束时间</a>
					</th>
					<th>
						<span>操作</span>
					</th>
				</tr>
				<#list pager.result as reservation>
					<tr>
						<td>
							${(reservation.device.classifyId)!}
						</td>
						<td>
							${(reservation.device.propertyName)!}
						</td>
						<td>
						    ${(reservation.device.classifyName)!}
						</td>
						<td>
						    ${(reservation.device.location)!}
						</td>
						<td>
							${(reservation.createDate)!}
						</td>
						<td>
							${(reservation.beginDate)!}
						</td>
						<td>
							${(reservation.endDate)!}
						</td>
						<td>
							<a class="cancelreserve" href="${base}/faith/reserve/delete/${reservation.id}" target="mainFrame" title="撤销预约">[撤销预约]</a>
						</td>
					</tr>
				</#list>
			</table>
			<#if (pager.result?size > 0)>
				<div class="pagerBar">
					<div class="pager">
						<#include "admin/pager.ftl" />
					</div>
				<div>
			<#else>
				<div class="noRecord">没有找到任何记录!</div>
			</#if>
		</form>
	</div>
	
	<#include "/common/canceldialog.ftl">

</body>
</html>